<?php $this->page_title = 'Users'; ?>
<?php

$form = $this->form('user_grid')
	->grid('users',null,array(
			'id' => t('Login name'),
			'name' => t('Name','user_grid'),
			'full_address' => t('Address'),
			'gender_label' => t('Gender'),
		),$this->users()->find_all_users(),array(
			'toolbar' => array(
				'add' => array('label' => t('Add user'),
					'action' => '/users/add', 'method' => 'link'),
			),
			'buttons' => array(
				'modify' => array('label' => t('Edit'), 
					'action' => '/users/edit/{#}', 'method' => 'link'),
				'delete' => array('label' => t('Delete'), 'action' => '/users/delete/{#}',
					'confirm' => t('Are you sure you want to remove the user permanently?')),
			),
		))
	->render();
